package com.ruoyi.exam.service.impl;

import java.util.Collections;
import java.util.List;

import com.ruoyi.exam.domain.entity.exentity.PeopleTitleSummary;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.exam.mapper.TPeopleTitleMapper;
import com.ruoyi.exam.domain.TPeopleTitle;
import com.ruoyi.exam.service.ITPeopleTitleService;

/**
 * 人员题库关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-08
 */
@Service
public class TPeopleTitleServiceImpl implements ITPeopleTitleService 
{
    @Autowired
    private TPeopleTitleMapper tPeopleTitleMapper;

    /**
     * 查询人员题库关系
     * 
     * @param id 人员题库关系主键
     * @return 人员题库关系
     */
    @Override
    public TPeopleTitle selectTPeopleTitleById(Long id)
    {
        return tPeopleTitleMapper.selectTPeopleTitleById(id);
    }

    /**
     * 查询人员题库关系列表
     * 
     * @param tPeopleTitle 人员题库关系
     * @return 人员题库关系
     */
    @Override
    public List<TPeopleTitle> selectTPeopleTitleList(TPeopleTitle tPeopleTitle)
    {
        return tPeopleTitleMapper.selectTPeopleTitleList(tPeopleTitle);
    }

    /**
     * 新增人员题库关系
     * 
     * @param tPeopleTitle 人员题库关系
     * @return 结果
     */
    @Override
    public int insertTPeopleTitle(TPeopleTitle tPeopleTitle)
    {
        return tPeopleTitleMapper.insertTPeopleTitle(tPeopleTitle);
    }

    /**
     * 修改人员题库关系
     * 
     * @param tPeopleTitle 人员题库关系
     * @return 结果
     */
    @Override
    public int updateTPeopleTitle(TPeopleTitle tPeopleTitle)
    {
        return tPeopleTitleMapper.updateTPeopleTitle(tPeopleTitle);
    }

    /**
     * 批量删除人员题库关系
     * 
     * @param ids 需要删除的人员题库关系主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleTitleByIds(Long[] ids)
    {
        return tPeopleTitleMapper.deleteTPeopleTitleByIds(ids);
    }

    /**
     * 删除人员题库关系信息
     * 
     * @param id 人员题库关系主键
     * @return 结果
     */
    @Override
    public int deleteTPeopleTitleById(Long id)
    {
        return tPeopleTitleMapper.deleteTPeopleTitleById(id);
    }

    @Override
    public List<PeopleTitleSummary> selectPeopleTitleSummaryList() {
        return tPeopleTitleMapper.selectPeopleTitleSummaryList();
    }
}
